package ooday01test;

public class StudentsTest {
    public static void main(String[] args) {
        // 创建对象
        Students stu1=new Students();
        stu1.name="张三";
        stu1.age=18;
        stu1.className="软件1班";
        stu1.stuId="2019001";
        stu1.sayHi();

        Students stu2=new Students("李四",19,"软件2班","2019002");
        stu2.sayHi();
        stu2.playWith("张三");
    }
}
